package vip.ipav.spring.cloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * 微服务B
 *
 */
//@EnableEurekaClient 注册服务会找不到，可能是路由问题
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
@EnableHystrix
public class MicroServiceBServer {
    public static void main(String[] args) {
        new SpringApplicationBuilder(MicroServiceBServer.class).web(true).run(args);
    }

}
